package com.tedu.openmedical.statistics.mapper;

import com.tedu.openmedical.statistics.pojo.dto.ChartsData;
import org.springframework.stereotype.Repository;

import java.time.LocalDate;
import java.util.Date;
import java.util.List;

@Repository
public interface RecordCopyStatisticsMapper {

    int selectToday(Date todayDate);

    int selectToweek(LocalDate startDate, LocalDate endDate);

    int selectTomoon(Date todayDate);

    int selectToyear(Date todayDate);

    int selectLastday();

    int selectLastweek(LocalDate lastStartDate, LocalDate lastEndDate);

    int selectTotal();

    int selectLastyear();

    int selectLastmoon();

    List<ChartsData> selectRangeDateByData(Date startDate, Date endDate);

    int insertRangeDate(Date rangeDate);

    int dropRangeDateTable();

    Date[] selectRangeDate();

    List<String> selectRangeDateByBarData(Date startDate, Date endDate);

    List<String> selectRangeDateByPieData(Date startDate, Date endDate);
}
